import "@/assets/global.css";
import "element-plus/dist/index.css";
import "swiper/css";
import "@/assets/font/iconfont.css"; // 全局注册 图标

import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import router from "./router";
import { register } from "swiper/element/bundle";
import popupConsult from "@/components/popup/popupConsult.vue";
import popupCustomization from "@/components/popup/popupCustomization.vue";
import backTop from "./components/tool/backTop.vue";
// import newHeader from "@/components/general/Header.vue";
import webHeader from "@/components/general/Header.vue";
import webFooter from "@/components/general/Footer.vue";
import newFooter from "@/components/general/FooterNew.vue";
import threeHeader from "@/components/general/HeaderThree.vue";

const app = createApp(App);

// 加载53
// (function () {
//   var _53code = document.createElement("script");
//   _53code.src =
//     "https://tb.53kf.com/code/code/056a7c01463dbbb61ea4ab91a2b5a06e/2";
//   var s = document.getElementsByTagName("script")[0];
//   s.parentNode.insertBefore(_53code, s);
// })();

app.use(createPinia());
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(router);
register();
app.component("popup-consult", popupConsult);
app.component("popup-customization", popupCustomization);
app.component("back-top", backTop);
app.component("web-header", webHeader);
app.component("web-footer", webFooter);
app.component("three-header", threeHeader);
// 媒体查询顶部&底部 
app.component("new-footer", newFooter);
app.mount("#app");
